import request from '@/utils/request'

export function getScholarshipList(data) {
    return request({
        url: '/scholarship/selectAll',
        method: 'get',
        params: data
    })
}

export function getScholarshipById(data) {
    return request({
        url: `/scholarship/select/${data.id}`,
        method: 'get',
        params: data
    })
}


export function updateScholarship(data) {
    return request({
        url: '/scholarship/update',
        method: 'put',
        data
    })
}

export function insertScholarship(data) {
    return request({
        url: '/scholarship/insert',
        method: 'post',
        data
    })
}